project(q1)

cmake_minimum_required (VERSION 3.5)

# -g allows for gdb debugging
# turn on -03 for best performance
add_definitions(-std=c++11)

set(CXX_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS "${CXX_FLAGS}")

set(sources src/main.cpp)

# include_directories(/usr/local/include)
# include_directories(src/Eigen-3.3)
find_package(Eigen3)
if (${EIGEN3_FOUND})
  include_directories(${EIGEN3_INCLUDE_DIR})
  message(STATUS, "Eigen3 path: ${EIGEN3_INCLUDE_DIR}")
else()
  message(STATUS "Eigen3 not found")
endif()

link_directories(/usr/local/lib)

add_executable(global_kinematic_model ${sources})

target_link_libraries(global_kinematic_model)
